package loaderlib.agent
{
	/**
	 * requester interface
	 * 
	 * @author TangZhen
	 * 
	 */
	public interface IRequester
	{
		/**
		 * getter get the requester's url
		 * 
		 * @return the url string 
		 * 
		 */
		function get url():String;
		
		/**
		 * getter get the requester' dataFormat
		 * 
		 * @return the dataFormat string
		 * 
		 */
		function get dataFormat():String;
		
		/**
		 * requester get the data function
		 * 
		 * if the data is ready, it will call this getData call back function.
		 * 
		 * @param data
		 * @return 
		 * 
		 */
		function getData(data:*):Boolean;
		
		/**
		 * the loaderTag of requester 
		 * 
		 * the Tag set same requester as a same type.
		 * 
		 * @return the tag string
		 * 
		 */
		function get loaderTag():String;
	}
}